package io.wdb.modules.activity.wxapp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import io.wdb.common.utils.UUIDGenerator;


import io.wdb.modules.activity.wxapp.dao.HdReadRecordDao;
import io.wdb.modules.activity.wxapp.entity.HdReadRecordEntity;
import io.wdb.modules.activity.wxapp.service.HdReadRecordService;



@Service("hdReadRecordService")
public class HdReadRecordServiceImpl implements HdReadRecordService {
	@Autowired
	private HdReadRecordDao hdReadRecordDao;
	
	@Override
	public HdReadRecordEntity queryObject(String id){
		return hdReadRecordDao.queryObject(id);
	}
	
	@Override
	public List<HdReadRecordEntity> queryList(Map<String, Object> map){
		return hdReadRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hdReadRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(HdReadRecordEntity hdReadRecord){
		hdReadRecord.setId(UUIDGenerator.getUUID());
		hdReadRecordDao.save(hdReadRecord);
	}
	
	@Override
	public void update(HdReadRecordEntity hdReadRecord){
		hdReadRecordDao.update(hdReadRecord);
	}
	
	@Override
	public void delete(String id){
		hdReadRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hdReadRecordDao.deleteBatch(ids);
	}
	
}
